/*
*********************************************************************************************************
*                                               uC/HTTP
*                                     Hypertext Transfer Protocol
*
*                    Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
*
*                                 SPDX-License-Identifier: APACHE-2.0
*
*               This software is subject to an open source license and is distributed by
*                Silicon Laboratories Inc. pursuant to the terms of the Apache License,
*                    Version 2.0 available at www.apache.org/licenses/LICENSE-2.0.
*
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                             HTTP CLIENT
*
* Filename : http-c_type.h
* Version  : V3.01.00
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*********************************************************************************************************
*                                               MODULE
*
* Note(s) : (1) This main network protocol suite header file is protected from multiple pre-processor
*               inclusion through use of the HTTPc module present pre-processor macro definition.
*********************************************************************************************************
*********************************************************************************************************
*/

#ifndef  HTTPc_TYPE_MODULE_PRESENT                              /* See Note #1.                                         */
#define  HTTPc_TYPE_MODULE_PRESENT

/*
*********************************************************************************************************
*********************************************************************************************************
*                                         HTTPc INCLUDE FILES
*********************************************************************************************************
*********************************************************************************************************
*/

#include  <cpu.h>
#include  <Source/net_type.h>


/*
*********************************************************************************************************
*********************************************************************************************************
*                                              DATA TYPES
*********************************************************************************************************
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                       CONFIGURATION DATA TYPE
*********************************************************************************************************
*/

typedef  struct  httpc_cfg {

/*
*--------------------------------------------------------------------------------------------------------
*                                      TASK CONFIGURATION
*--------------------------------------------------------------------------------------------------------
*/

    CPU_INT08U                 TaskDly_ms;                      /* Task Delay in milliseconds.                          */


/*
*--------------------------------------------------------------------------------------------------------
*                                   CONNECTION CONFIGURATION
*--------------------------------------------------------------------------------------------------------
*/
    CPU_INT08U                 MsgQ_Size;                       /* Message Queue Size.                                  */
    CPU_INT16U                 ConnConnectTimeout_ms;           /* Connection Connect Timeout.                          */
    CPU_INT16U                 ConnInactivityTimeout_s;         /* Connection Inactivity Timeout.                       */
    CPU_BOOLEAN                ConnIsKeepAlive;                 /* Configure the connection to use keep-alive probes.   */
} HTTPc_CFG;


/*
*********************************************************************************************************
*********************************************************************************************************
*                                             MODULE END
*********************************************************************************************************
*********************************************************************************************************
*/

#endif  /* HTTPc_TYPE_MODULE_PRESENT  */
